package com.zaozhuang.robot.websocket;

public interface Constants {
    class SocketMessageType {
//        public static final String TYPE_MESSAGE = "\"message\"";
//        public static final String TYPE_MESSAGE_END = "\"message_end\"";
//        public static final String TYPE_MESSAGE_TYPE = "\"custom\"";
//        public static final String TYPE_ERROR = "\"error\"";
        //注意有空格
        public static final String TYPE_MESSAGE = "\"event\": \"message\"";
        public static final String TYPE_MESSAGE_END = "\"event\": \"message_end\"";
        public static final String TYPE_ERROR = "\"event\": \"error\"";
        //下面的没空格
        public static final String TYPE_MESSAGE_TYPE = "\"event\":\"custom\"";

        public static final String TYPE_COMMAND = "\"event\":\"command\"";

        public static final String TYPE_WORKFLOW_STARTED = "\"event\": \"workflow_started\"";

        //"code":"500"
        public static final String TYPE_CODE_500 = "\"code\":\"500\"";

    }

    class SendMessageType {
        public static final String TYPE_STOP = "stop";//停止 当前回复
        public static final String TYPE_END = "end";//结束 当前会话 清空conversationId
        public static final String TYPE_ASK = "answer"; //提问
    }
}
